package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资金账户对象 t_account
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
public class TAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 账户ID */
    private Long aid;

    /** 账户名称 */
    @Excel(name = "账户名称")
    private String aname;

    /** 最近操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recentlyTime;

    /** 账户编号 */
    @Excel(name = "账户编号")
    private String acode;

    /** 是否停用，0没有停用，1已停用 */
    @Excel(name = "是否停用，0没有停用，1已停用")
    private Long stop;

    /** 是否删除，0没有删除，1已经删除 */
    @Excel(name = "是否删除，0没有删除，1已经删除")
    private Long deleted;

    /** 默认币种 */
    @Excel(name = "默认币种")
    private Long mainCurrency;

    /** 账户类型：现金、银行存款、信用卡 */
    @Excel(name = "账户类型：现金、银行存款、信用卡")
    private String atype;

    private  String createtime;

    private Long ofCompany;

    public Long getOfCompany() {
        return ofCompany;
    }

    public void setOfCompany(Long ofCompany) {
        this.ofCompany = ofCompany;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public void setAid(Long aid)
    {
        this.aid = aid;
    }

    public Long getAid() 
    {
        return aid;
    }
    public void setAname(String aname) 
    {
        this.aname = aname;
    }

    public String getAname() 
    {
        return aname;
    }
    public void setRecentlyTime(Date recentlyTime) 
    {
        this.recentlyTime = recentlyTime;
    }

    public Date getRecentlyTime() 
    {
        return recentlyTime;
    }
    public void setAcode(String acode) 
    {
        this.acode = acode;
    }

    public String getAcode() 
    {
        return acode;
    }
    public void setStop(Long stop) 
    {
        this.stop = stop;
    }

    public Long getStop() 
    {
        return stop;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }
    public void setMainCurrency(Long mainCurrency) 
    {
        this.mainCurrency = mainCurrency;
    }

    public Long getMainCurrency() 
    {
        return mainCurrency;
    }
    public void setAtype(String atype) 
    {
        this.atype = atype;
    }

    public String getAtype() 
    {
        return atype;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("aid", getAid())
            .append("aname", getAname())
            .append("recentlyTime", getRecentlyTime())
            .append("acode", getAcode())
            .append("stop", getStop())
            .append("deleted", getDeleted())
            .append("mainCurrency", getMainCurrency())
            .append("atype", getAtype())
            .toString();
    }
}
